package com.citymanage.demo.service.cases;

import com.citymanage.demo.mapper.cases.CaseMapper;
import com.citymanage.demo.po.cases.Case;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CaseService {
    @Autowired
    private CaseMapper caseMapper;
    public void submitCase(String clocation,String ctime,String cdescribe,Integer personID){
        caseMapper.submitCase(clocation,ctime,cdescribe,personID);
    }
    public List<Case>selectAll(){
        return caseMapper.selectAll();
    }
    public List<Case>selectBykey(Integer key){return caseMapper.selectBykey(key);}
    public void solveCase(String cimg,String crescult,Integer wid,Integer cid){
        caseMapper.solveCase(cimg,crescult, wid, cid);
    }
    public void scoreCase(Integer cid,Integer cscore){
        caseMapper.scoreCase(cid,cscore);
    }
}
